<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
    <link rel="stylesheet" href="/Public/Admin/css/style.css"/>
    <style>
        .blue{color:#0060A9}
    </style>
</block>
<block name="content" > 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search" style='height:44px;line-height: 44px;'>
                    <div class="layui-inline" style='float:left;top:-7px'>
                        <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('Flow/flowDesign',array('flow_id'=>$flow_id,'form_id'=>$form_id))}">返回</a>
                    </div>
                    <div class="layui-input-inline" style='float:right;top:-7px'>
                        <a class="layui-btn search_btn" href="{:U('newFlowStep',array('flow_id'=>$flow_id))}"> 新建步骤</a>
                        <a class="layui-btn search_btn showChart" data-id="{$flow_id}"> 图形视图</a>
                    </div>
                </blockquote>
                <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
                    <!-- 计划列表 -->
                    <div class="layui-tab-item layui-field-box layui-show">
                        <div class="f-s-tit">
                            <p class="f-s-tit-name">流程名称：{$flow_id|getFlowName}</p>
                            <p class="f-s-tit-expain">请设定好各步骤的可写字段和经办权限（此经办权限是经办人员、经办部门、经办角色的合集）</p>
                        </div>

                        <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                            <thead>
                                <tr>
                                    <th style="width:7%">序号</th>
                                    <th>名称</th>
                                    <th>下一步骤</th>
                                    <th>编辑该步骤的各项属性</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <notempty name="process">
                                <foreach name="process" key="key" item="row">
                                    <tr>
                                        <td>{$row.prcs_id}</td>
                                        <td>{$row.prcs_name}</td>
                                        <td>{$row.prcs_to}</td>
                                        <td>
                                            <a href="{:U('newFlowStep',array('flow_id'=>$row['flow_id'],'prcs_id'=>$row['prcs_id']))}" class="blue">基本属性</a>
                                            <a href="{:U('flowPower',array('flow_id'=>$row['flow_id'],'prcs_id'=>$row['prcs_id']))}" class="blue">经办权限</a>
                                            <a href="{:U('flowField',array('flow_id'=>$row['flow_id'],'prcs_id'=>$row['prcs_id']))}" class="blue">可写字段</a>
                                            <!--                                        <a href="#" class="">保密字段</a>
                                                                                    <a href="#" class="">必填字段</a>-->
                                            <a href="{:U('flowCondition',array('flow_id'=>$row['flow_id'],'prcs_id'=>$row['prcs_id']))}" class="blue">条件设置</a>
                                        </td>
                                        <td>
                                            <a class="pointer deleteStep" data-url="{:U('deleteStep',array('flow_id'=>$flow_id,'prcs_id'=>$row['prcs_id']))}">删除</a>
                                        </td>
                                    </tr>
                                </foreach>
                                <else />
                                <tr><td colspan="5" style="color:red;padding:10px 0">该流程尚未创建步骤！</td></tr>
                            </notempty>
                            </tbody>
                        </table>
                        <div class="larry-table-page clearfix">
                            <input type='hidden' id="followUrl" value="{:U('attentPlan')}">
                            <!--<a href="javascript:;" class="layui-btn layui-btn-small"><i class="iconfont icon-shanchu1"></i>删除</a>-->
                            <div id="page" class="page">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/flow.js"></script>
    <script type="text/javascript">
        $(initFlowType());

    </script>    
</block>

